package com.sh.learn.ibeifeng.webservice.axis;

/**
 * 需要在描述文件中对自定义javabean进行描述
 */
//<service name="OrderService" provider="java:RPC">
//   <parameter name="className" value="com.sh.learn.ibeifeng.webservice.axis.OrderService" />
//   <parameter name="allowedMethods" value="returnOrder" />
//   <beanMapping languageSpecificType="java:com.sh.learn.ibeifeng.webservice.axis.Order" qname="nsl:Order" xmlns:nsl="BeanService" />
//</service>
public class OrderService {

	/**
	 * 双向的服务
	 */
	public Order returnOrder(Order order){
		// 
		Order result = new Order();
		if(order != null && order.getId().equals("1")){
			result.setName("hong");
		}else{
			result.setName("someone");
		}
		return result;
	}
}
